Code-coverage guided prioritized test generation

ABSTRACT

A method for generating test cases for a program is disclosed. The method combines features of path-oriented and goal-oriented software testing. The illustrative embodiment constructs a control-flow graph with nodes that correspond to invocations of subroutines, and constructs control-flow graphs for the source code of such nodes as well. A metric that is based on the topology of the control-flow graph is evaluated recursively for nodes of the graph and for control-flow graphs that correspond to invoked subroutines. In the illustrative embodiment, the metric employed is the length of a shortest path from the starting node to a particular node. A node n with the highest metric value is then selected as a goal, and a path from the starting node to the ending node that passes through node n is generated via backtracking.

FIELD OF THE INVENTION

The present invention relates to software engineering in general, and,more particularly, to automatic test generation from source code.

BACKGROUND OF THE INVENTION

As software gets more complex, so does testing the software to ensurethat it works properly. As a result, software engineers have devisedtesting tools that facilitate the process of testing software.

Typically, a testing tool automatically generates sample inputs, knownas test cases, for a program and then executes the program on each ofthe test cases, thereby enabling a human tester to compare the resultsof these test cases with the desired behavior. Testing tools thatgenerate sample inputs based on an analysis of the source code of aprogram are known as whitebox tools, while testing tools that generatesample inputs without considering source code are known as blackboxtools.

Whitebox testing tools typically can be categorized into four classes.Random testing tools randomly generate test cases based on source code.Path-oriented testing tools identify a set of paths through the sourcecode and generate appropriate test cases to cover the paths.Goal-oriented testing tools identify test cases that satisfy a selectedgoal (e.g., coverage of a particular statement in the source code,etc.), irrespective of the path that is traversed. Intelligent testingtools analyze the source code and identify potential error-pronesections of the program (e.g., a block of code that uses pointersextensively, etc.).

Path-oriented testing tools are advantageous because they can ensurethat every line of code in a source program is executed by at least onetest case. Path-oriented testing tools work by constructing acontrol-flow graph of a source program. A control-flow graph is adirected graph (N, A, s, X) where N is a set of nodes; A⊂N×N is a set ofarcs; SεN is a unique starting node; and a proper subset X⊂N of one ormore ending nodes. Each node corresponds to a program block, which is alist of one or more program statements that are executed sequentially indeterministic fashion, and each arc corresponds to a control transferfrom one program block to another. If more than one outgoing arc leavesa node, then each outgoing arc is labeled with a logical expression suchthat exactly one of the logical expressions is true for any giveninstantiation of variables. For example, three outgoing arcs from a nodemight be labeled i<x, i=x and i>x, respectively.

FIG. 1 depicts the source code of an illustrative program, andcontrol-flow graph 100 that corresponds to the program. Each node 101,102, . . . , 110 corresponds to one or more lines of code of theprogram, as indicated by the label of the node (e.g., node 101corresponds to lines 1 through 5, etc.). The starting node, in this casenode 101, is indicated by a double ellipse, and the single ending node,in this case node 110, is indicated by a triple ellipse. A labeled arcfrom a first node to a second node indicates the corresponding conditionof the program that is necessary for a transition from the first node tothe second node.

After constructing a control-flow graph, a path-oriented tool generatesa set of paths from the starting node s to the ending node e such thatall nodes in the control-flow graph are covered. A number of differenttechniques are known in the art to generate a test case for eachgenerated path by assigning values to input variables accordingly. Thesource program can then be tested by executing the program for each testcase and comparing the results with the expected behavior of theprogram.

SUMMARY OF THE INVENTION

The present invention is based on the observation that as programsbecome very large, checking all the test cases generated bypath-oriented tools becomes intractable. The illustrative embodiment ofthe present invention combines features of the path-oriented approachwith features of the goal-oriented approach to generate a manageable setof test cases that provides effective code coverage. In addition, theillustrative embodiment constructs a control-flow graph with nodes thatcorrespond to invocations of subroutines (e.g., method calls inobject-oriented languages such as lava, procedure calls in procedurallanguages such as C, function calls in functional programming languagessuch as Lisp, etc.) and constructs control-flow graphs for the sourcecode of such nodes as well. By treating subroutine invocations in thismanner, the illustrative embodiment is able to more accurately quantifythe degree of code coverage of paths in the control-flow graph.

In the illustrative embodiment, a metric is evaluated for each node of acontrol-flow graph based on the topology of the control-flow graph, andrecursively based on the topology of control-flow graphs that correspondto invoked subroutines. In the illustrative embodiment, the metricemployed is the length of a shortest path from the starting node to aparticular node. A node n with the highest metric value (i.e., the nodewhose shortest path is longer than any other node's shortest path) isthen selected as a goal, and a path from the starting node to the endingnode that passes through node n is generated via backtracking, therebyresulting in a path that passes through the most important node (i.e.,the node with the largest metric value).

A test case corresponding to this path is then generated either byguiding the user in assigning values to variables, or by determiningvariable assignments automatically, or a combination of both.Subsequently, the metric for each node in the control-flow graph isre-evaluated based on the selected path. (In the illustrativeembodiment, the metric for a node m of the control-flow graph isgeneralized to be the length of a shortest path from any node of apreviously-generated path to node m.) A next-best path from the startingnode to the ending node is then selected based on the updated values ofthe metric, and a second test case corresponding to this path isgenerated accordingly. The illustrative embodiment can similarlygenerate as many additional test cases as necessary, based on specifiedtime constraints, desired percentage of code coverage, etc. After testcases have been generated, the test cases are executed in prioritizedorder, thereby improving the efficacy of testing schedules that aresubject to time constraints.

The illustrative embodiment comprises: (a) generating a first path fromthe starting node of a control-flow graph to a goal node of thecontrol-flow graph based on the values of a metric for two or more othernodes of the control-flow graph; (b) generating a second path from thegoal node to the ending node of the control-flow graph; and (c)generating, based on the concatenation of the first path and the secondpath, a first test case for the program from which the control-flowgraph is derived.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts an illustrative program and a control-flow graph thatcorresponds to the program, in accordance with the prior art.

FIG. 2 depicts an illustrative program and a control-flow graph thatcorresponds to the program, in accordance with the illustrativeembodiment of the present invention.

FIG. 3 depicts an illustrative control-flow graph that corresponds to asubroutine, and a table of weights and metric values for each node ofthe control-flow graph, in accordance with the illustrative embodimentof the present invention.

FIG. 4 depicts a path generated for control-flow graph 300, inaccordance with the illustrative embodiment of the present invention.

FIG. 5 depicts a table of weights and metric values for each node ofcontrol-flow graph 200, as shown in FIG. 2, in accordance with theillustrative embodiment of the present invention.

FIG. 6 depicts a path generated for control-flow graph 200, inaccordance with the illustrative embodiment of the present invention.

FIG. 7 depicts a table of updated weights and metric values for eachnode of control-flow graph 300, in accordance with the illustrativeembodiment of the present invention.

FIG. 8 depicts a table of updated weights and metric values for eachnode of control-flow graph 200, in accordance with the illustrativeembodiment of the present invention.

FIG. 9 depicts a second path generated for control-flow graph 200, inaccordance with the illustrative embodiment of the present invention.

FIG. 10 depicts a flowchart of the salient tasks of the illustrativeembodiment of the present invention.

FIG. 11 depicts a detailed flowchart of task 1025, as shown in FIG. 10,in accordance with the illustrative embodiment of the present invention.

FIG. 12 depicts a detailed flowchart of task 1040, as shown in FIG. 10,in accordance with the illustrative embodiment of the present invention.

DETAILED DESCRIPTION

FIG. 2 depicts (a) an illustrative program and (b) control-flow graph200 that corresponds to the program, in accordance with the illustrativeembodiment of the present invention. The program of FIG. 2 is the sameas the program of FIG. 1, except for an additional line of code, denotedline 14 a, that comprises a subroutine call for a procedure proc1.Control-flow graph 200 is similar to control-flow graph 100, except thatnode 108 is replaced with three nodes: node 208, node 218, and 228. Inaccordance with the illustrative embodiment of the present invention,any line of code that invokes a subroutine is represented by a separatenode, and thus lines 13, 14, and 15 are divided into two nodes: one node(208) comprising the lines of code that occur before the subroutineinvocation (i.e., lines 13 and 14), and one node (228) comprising thelines of code that occur after the subroutine invocation (i.e., line15). Node 218 represents line 14 a and is accordingly positioned betweennodes 208 and 228, as shown in FIG. 2.

FIG. 3 a depicts illustrative control-flow graph 300 that corresponds tosubroutine proc1, in accordance with the illustrative embodiment of thepresent invention. As shown in FIG. 3 a, control-flow graph 300 has sixnodes 301 through 306, where node 301 is the starting node, and nodes302 and 306 are ending nodes (for example, corresponding to two ‘return’statements in proc1).

FIG. 3 b depicts table 310, which comprises illustrative weights fornodes 301 through 306 of control-flow graph 300, where the weight of anode equals the number of lines of code of subroutine proc1 that thenode represents. Table 310 also comprises values of a metric for eachnode that is based on the node weights. In the illustrative embodiment,the metric is based on the topology of the control-flow graph inaddition to the weights. In particular, the value of the metric for anode n is the length of a shortest path from the starting node to anending node that passes through node n, where the length of a pathequals the sum of the weights of nodes along the path. For example, ashortest path that includes node 301 is the path consisting of nodes 301and 303, and the length of this path is 3, the sum of the weights ofnodes 301 and 303. Consequently, the value of the metric for node 301 is3, and similarly, the value of the metric for node 303 is also 3. Themetric values for the remaining nodes, as shown in the table, aredetermined in a similar fashion. As will be appreciated by those skilledin the art, it is well-known how to efficiently compute the lengths ofshortest paths through a graph, and it will be clear how to modify suchmethods for graphs that have weights associated with nodes instead ofarcs.

As shown in table 310, node 304 has the highest metric value (21, asindicated in boldface), and thus it is selected as the goal node throughwhich an execution path of subroutine prod must pass. FIG. 4 depictssuch a path, as indicated by the boldface nodes and arcs.

In the case of control-flow graph 300, there is only one path from thestarting node to an ending node that includes node 304. In general,however, there might be more than one such path. In the illustrativeembodiment, a backtracking algorithm is employed to generate a path thatincludes a specified goal node, where the selection of nodes along thepath is guided by their metric values. The path-generation algorithm isdescribed in detail below and with respect to FIG. 13.

FIG. 5 depicts table 510, which comprises weights and metric values foreach node of control-flow graph 200, in accordance with the illustrativeembodiment of the present invention. With the exception of node 218, theweight of each node of control-flow graph 200 equals the number of linesof code of program2 represented by the node, just as was the case forcontrol-flow graph 300. However, node 218, which invokes a subroutine,is instead assigned a weight equal to the metric value of thecontrol-flow graph for that subroutine (i.e., control-flow graph 300).In the illustrative embodiment, the overall metric value for acontrol-flow graph is defined as the maximum metric value among thenodes of the control-flow graph. The maximum metric value for nodes ofcontrol-flow graph 300 is 21, and thus the overall metric value forcontrol-flow graph 300 equals 21.

After the node weights for control-flow graph 200 are assigned, themetric values for each node is computed in the same manner as describedabove for control-flow graph 300; the results are shown in table 510. Asshown in table 510, nodes 208, 218, and 228 have the maximum metricvalue of 38, as indicated in boldface, and thus any one of these threenodes can be selected as the goal node through which an execution pathof program2 must pass.

FIG. 6 shows a path generated for control-flow graph 200. The arctransition from node 202 to ending node 210, which is the final segmentof the path, is indicated by a dotted line instead of bold todistinguish from the first transition out of node 202 (to node 203).(The reason why node 204 is included in the path, rather than skippedover via the arc from node 203 to node 205, will become clear afterreading the disclosure of the path-generation algorithm, which isdescribed in detail below and with respect to FIG. 13.

The selection of a goal node in illustrative control-flow graph 200turned out to be immaterial, since any choice will result in the pathshown in FIG. 6 (i.e., the generated path includes all three candidategoal nodes). In some other control-flow graphs, however, different pathsmight be possible when there are two or more potential goal nodes (e.g.,a first path might include only a first goal node and a second pathmight include only a second goal node, etc.) Moreover, although the pathgenerated for control-flow graph 200 happens to includesubroutine-invocation node 218, this is not always the case.

The entire path for a test case for program2 is therefore the union ofthe paths of FIG. 6 and FIG. 4. A test case corresponding to this entirepath can then be generated by assigning values to input variables ofprogram2 accordingly. If it is determined that the generated test casedoes not provide sufficient code coverage, an additional test case canbe generated by updating the node weights and metrics of control-flowgraphs 300 and 200 accordingly, and by subsequently employing theforegoing method to generate other paths in the control-flow graphs, asdescribed below.

FIG. 7 depicts table 710 comprising updated weights and metric valuesfor each node of control-flow graph 300, in accordance with theillustrative embodiment of the present invention. Each node that belongsto a previously-generated path (in this case, the path of FIG. 4) isassigned a new weight of zero, while the weights of nodes that do notbelong to any previously-generated path remains unchanged. As shown inFIG. 7, node 303 has the highest metric value and thus is the new goalnode, resulting in a new path {node 301, node 303}.

FIG. 8 depicts table 810 comprising updated weights and metric valuesfor each node of control-flow graph 200, in accordance with theillustrative embodiment of the present invention. As in table 710, allnodes on the path of FIG. 6, with the exception of subroutine-invocationnode 218, is assigned a new weight of zero. Node 218 is assigned the newmaximum metric value of nodes in control-flow graph 300 (1,corresponding to node 303), and the weights of all other nodes ofcontrol-flow graph 200 (in this case node 306 only) remain unchanged.

The metric values for each node in control-flow graph 200 are thenupdated accordingly based on the updated weights. As shown in FIG. 8,nodes 206, 208, 218 and 228 now have the largest metric value. If any ofnodes 208, 218, or 228 are selected as the goal node, then the generatedpath for control-flow graph 200 will be the same as FIG. 6, and theentire path for the second test case will be the union of the path ofFIG. 6 and the path {node 301, node 303}. If instead node 206 isselected as the goal node, then the entire path for the second test willbe the path shown in FIG. 9.

FIG. 10 depicts a formal specification of the foregoing method inflowchart form. In accordance with the illustrative embodiment, themethod of FIG. 10 is recursive, thereby enabling test cases to begenerated for programs of arbitrary complexity (e.g., a program in whicha first subroutine invokes a second subroutine and the second subroutineinvokes the first subroutine, etc.). It will be clear to those skilledin the art which tasks depicted in FIG. 10 can be performedsimultaneously or in a different order than that depicted.

At task 1010, source code C for a program or a subroutine is passed asinput to the method of FIG. 10.

At task 1015, a control-flow graph G with separate nodes for subroutineinvocations is generated from source code C, in well-known fashion.

At task 1020, set S is initialized as a singleton that contains thestarting node of G.

At task 1025, weights for the nodes of G are generated, as described indetail below and with respect to the flowchart of FIG. 11.

At task 1030, metric values for nodes of G are generated, where themetric values are based on the node weights generated at task 1025 andon set S. As described above, the metric for a given node of G is thelength of a shortest path to that node from any node in set S, where thelength of a path is sum of the weights of the nodes on the path.Shortest-path algorithms are well-known in the art, and it will be clearto those skilled in the art how to use such an algorithm to compute thevalues of this metric for each node of G.

At task 1035, the node n of G that has the largest metric value isselected as the goal node. (Ties can be broken arbitrarily.)

At task 1040, a path P1 from the starting node of G to node n isgenerated, as described in detail below and with respect to theflowchart of FIG. 13.

At task 1045, a path P2 from node n to an ending node is generated inwell-known fashion (e.g., depth-first search, breadth-first search,etc.).

At task 1050, variable P3 is set to the concatenation of paths P1 andP2.

At task 1055, a test case corresponding to path P3 is generated, inwell-known fashion.

At task 1060, any nodes of path P3 that are not already in set S areadded to S.

Task 1065 checks whether set S achieves sufficient code coverage, basedon user-defined criteria such as percentage of lines of code covered,time constraints, etc. If the code coverage is determined to beinsufficient, execution proceeds back to task 1025 for another iterationof the method; otherwise the method terminates.

FIG. 11 depicts a detailed flowchart of task 1025 in accordance with theillustrative embodiment of the present invention. It will be clear tothose skilled in the art which tasks depicted in FIG. 11 can beperformed simultaneously or in a different order than that depicted.

At task 1110, variable N is initialized to the set of nodes ofcontrol-flow graph G.

Task 1120 checks whether set N is empty. If not, execution continues attask 1130; otherwise task 1025 is complete and execution continues attask 1030 of FIG. 10.

At task 1130, a node is removed from set N and stored in variable x.

Task 1140 checks whether node x is a member of set S. If it is,execution proceeds to task 1150; otherwise execution continues at task1160.

At task 1150, the weight of node x is set to zero, and executioncontinues back at task 1120.

Task 1160 checks whether node x invokes a subroutine. If it does,execution continues at task 1180; otherwise execution continues at task1170.

At task 1170, the weight of node x is set to the number of lines of coderepresented by node x, and execution continues back at task 1120.

At task 1180, the method of FIG. 10 is invoked recursively on the sourcecode of the subroutine, and the weight of node x is set to the largestmetric value in the control-flow graph corresponding to the subroutine.After task 1180 is completed, execution continues back at task 1120.

FIG. 12 depicts a detailed flowchart of task 1040 in accordance with theillustrative embodiment of the present invention. It will be clear tothose skilled in the art which tasks depicted in FIG. 12 can beperformed simultaneously or in a different order than that depicted.

At task 1210, P1 is initialized to an empty list.

At task 1220, variable x is initialized to node n.

At task 1230, node x is inserted at the front of P1.

Task 1240 checks whether node x is the starting node of control-flowgraph G.

If it is not, execution proceeds to task 1250; otherwise task 1240 iscomplete and execution proceeds to task 1045 of FIG. 10.

At task 1250, the set of nodes of G that have an outgoing arc into nodex is stored in variable Y.

At task 1260, x is set to the node in Y that has the largest weight.(Ties can be broken arbitrarily.) After task 1260, execution continuesback at task 1230.

It is to be understood that the above-described embodiments are merelyillustrative of the present invention and that many variations of theabove-described embodiments can be devised by those skilled in the artwithout departing from the scope of the invention. For example, in thisSpecification, numerous specific details are provided in order toprovide a thorough description and understanding of the illustrativeembodiments of the present invention. Those skilled in the art willrecognize, however, that the invention can be practiced without one ormore of those details, or with other methods, materials, components,etc.

Furthermore, in some instances, well-known structures, materials, oroperations are not shown or described in detail to avoid obscuringaspects of the illustrative embodiments. It is understood that thevarious embodiments shown in the Figures are illustrative, and are notnecessarily drawn to scale. Reference throughout the specification to“one embodiment” or “an embodiment” or “some embodiments” means that aparticular feature, structure, material, or characteristic described inconnection with the embodiment(s) is included in at least one embodimentof the present invention, but not necessarily all embodiments.Consequently, the appearances of the phrase “in one embodiment,” “in anembodiment,” or “in some embodiments” in various places throughout theSpecification are not necessarily all referring to the same embodiment.Furthermore, the particular features, structures, materials, orcharacteristics can be combined in any suitable manner in one or moreembodiments. It is therefore intended that such variations be includedwithin the scope of the following claims and their equivalents.

1. A method comprising: (a) generating a first path from the startingnode of a control-flow graph to a goal node of said control-flow graphbased on the values of a metric for one or more other nodes of saidcontrol-flow graph; (b) generating a second path from said goal node toan ending node of said control-flow graph; and (c) generating, based onthe concatenation of said first path and said second path, a first testcase for the program from which said control-flow graph is derived. 2.The method of claim 1 wherein the value of said metric for said goalnode is at least as great as for any other node in said control-flowgraph.
 3. The method of claim 1 wherein said metric is based on thetopology of said control-flow graph.
 4. The method of claim 3 whereineach node of said control-flow graph is associated with a correspondingweight; and wherein the value of said metric for at least one node ofsaid control-flow graph is based on a weight associated with anothernode of said control-flow graph.
 5. The method of claim 4 wherein theweight associated with a node of said control-flow graph equals thenumber of lines of code of said program represented by said node.
 6. Themethod of claim 4 wherein said metric for a node of said control-flowgraph is the length of a shortest path from the starting node of saidcontrol-flow graph to said node; and wherein the length of a path equalsthe sum of the weights of nodes on said path.
 7. The method of claim 1further comprising: (d) generating, based on said first path and saidsecond path, updated values of said metric for nodes of saidcontrol-flow graph; (e) generating a third path from the starting nodeof said control-flow graph to an ending node of said control-flow graph,wherein said third path includes a node having the largest updatedvalue; and (f) generating, based on said third path, a second test casefor said program.
 8. The method of claim 7 wherein each node of saidcontrol-flow graph is associated with a corresponding weight; andwherein said metric for a node n is the length of a shortest path to nfrom any node of a previously-generated path; and wherein the length ofa path equals the sum of the weights of nodes on said path.
 9. A methodcomprising: (a) generating a first control-flow graph that is based on aprogram, wherein said first control-flow graph comprises a node thatrepresents a single line of code of said program that invokes asubroutine, and wherein said node has one or both of a single incomingarc and a single outgoing arc; (b) generating a first path from thestarting node of said first control-flow graph to an ending node of saidfirst control-flow graph; and (c) generating a first test case for saidprogram based on said path.
 10. The method of claim 9 wherein generatingsaid first path is based on the values of a metric for nodes of saidfirst control-flow graph.
 11. The method of claim 10 wherein said metricis based on the topology of said first control-flow graph.
 12. Themethod of claim 10 wherein each node of said first control-flow graph isassociated with a corresponding weight; and wherein the weightassociated with a node that lacks a subroutine invocation equals thenumber of lines of code of said program represented by said node; andwherein the weight associated with a node that invokes a subroutineequals the largest value of said metric among nodes of a secondcontrol-flow graph that is derived from said subroutine; and wherein thevalue of said metric for at least one node of said first control-flowgraph is based on a weight associated with another node of said firstcontrol-flow graph.
 13. The method of claim 12 wherein each node of acontrol-flow graph is associated with a corresponding weight; andwherein said metric for a node of a control-flow graph is the length ofa shortest path from the starting node of said control-flow graph tosaid node; and wherein the length of a path equals the sum of theweights of nodes on said path.
 14. The method of claim 12 wherein eachnode of said first control-flow graph is associated with a correspondingweight, said method further comprising: (d) generating updated values ofsaid metric for nodes of said second control-flow graph; (e) generating,based on at least one of said updated values of said second control-flowgraph, an updated weight for the node of said first control-flow graphthat corresponds to said second control-flow graph; (f) generatingupdated values of said metric for nodes of said first control-flow graphbased on said first path and on said updated weight; (g) generating asecond path from the starting node of said first control-flow graph toan ending node of said first control-flow graph, wherein said secondpath includes a node of said first control-flow graph having the largestupdated value; and (h) generating, based on said second path, a secondtest case for said program.
 15. The method of claim 14 wherein saidmetric for a node n of said first control-flow graph is the length of ashortest path to n from any node of a previously-generated path; andwherein the length of a path equals the sum of the weights of nodes onsaid path.
 16. A method comprising: (a) generating a first control-flowgraph that is based on a subroutine of a program; (b) generating asecond control-flow graph that is based on said program, wherein saidsecond control-flow graph comprises a node n that represents a singleline of code of said program that invokes said subroutine, and whereinnode n has one or both of a single incoming arc and a single outgoingarc; (c) generating a first path from the starting node of said firstcontrol-flow graph to an ending node of said first control-flow graph;(d) generating a second path from the starting node of said secondcontrol-flow graph to an ending node of said second control-flow graphthat includes node n; and (e) generating a first test case for saidprogram based on said first path and on said second path.
 17. The methodof claim 16 wherein generating said first path is based on the values ofa metric for nodes of said first control-flow graph; and whereingenerating said second path is based on the values of said metric fornodes of said second control-flow graph.
 18. The method of claim 17wherein said metric for a node of a control-flow graph is based on thetopology of said control-flow graph.
 19. The method of claim 17 whereinsaid metric for a node of a control-flow graph is the length of ashortest path from the starting node of said control-flow graph to saidnode; and wherein each node of said control-flow graph is associatedwith a corresponding weight; and wherein the length of a path equals thesum of the weights of nodes on said path.
 20. The method of claim 17wherein each node of said second control-flow graph is associated with acorresponding weight; and wherein the weight of a first node of saidsecond control-flow graph equals the largest value of said metric amongnodes of said first control-flow graph; and wherein the weight of asecond node of said second control-flow graph equals the number of linesof code of said program represented by second node; and wherein saidmetric for a node of said second control-flow graph is based on at leastone weight associated with another node of said second control-flowgraph.